package com.huirui.server.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * 订单配送信息表
 * @TableName t_order_delivery
 */
@TableName(value ="t_order_delivery")
@Data
public class OrderDelivery implements Serializable {
    /**
     * 配送记录ID（主键）
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 关联的订单ID
     */
    @TableField(value = "order_id")
    private Long orderId;

    /**
     * 收件人姓名
     */
    @TableField(value = "recipient_name")
    private String recipientName;

    /**
     * 收件人电话
     */
    @TableField(value = "recipient_phone")
    private String recipientPhone;

    /**
     * 配送地址
     */
    @TableField(value = "delivery_address")
    private String deliveryAddress;

    /**
     * 配送方式：1-快递 2-无需配送 3-自提
     */
    @TableField(value = "delivery_type")
    private Integer deliveryType;

    /**
     * 物流单号（配送方式为快递时必填）
     */
    @TableField(value = "tracking_number")
    private String trackingNumber;

    /**
     * 记录创建时间
     */
    @TableField(value = "create_time")
    private LocalDateTime createTime;

    /**
     * 记录更新时间
     */
    @TableField(value = "update_time")
    private LocalDateTime updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}